package com.bll.imple.talentsAction;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.bean.TalentsBean;
import com.bll.Action;
import com.dao.TalentsDao;

public class AddTalentsAction implements Action{

	public String execute(HttpServletRequest request,
			HttpServletResponse response) {
		String info=request.getParameter("info");
		int userId=Integer.parseInt(request.getParameter("userId"));
		
		TalentsBean bean=new TalentsBean();
		bean.setInfo(info);
		bean.setUserId(userId);
		
		TalentsDao dao=new TalentsDao();
		dao.AddTalents(bean);
		return "zhaopin.jsp";
	}

}
